<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <p v-if="status == 1">我是1</p>
        <p v-else-if="status == 2">当status是2时显示该行</p>
        <p v-else>否则显示该行</p>
        <input v-model="status">
    </div>
    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                status: 1
            }
        })

    </script>
</body>
</html>